<?php

class Db_Tables2_BLogsContractLaunch
{	
	function __construct() {
		$this->dealers_db = Zend_Registry::get("dealers_db");
	}
	
	function AddRecord($emp_id, $emp_name, $emp_level, $contract_id, $launch_switcher, $position)
	{
		$set = array(
			"emp_id" => $emp_id,
			"emp_name" => $emp_name,
			"emp_level" => $emp_level,
			"contract_id" => $contract_id,
			"launch_switcher" => $launch_switcher,
			"position" => $position,
			"ctime" => date("Y-m-d H:i:s")
		);
		
		$this->dealers_db->insert("b_logs_contract_launch", $set);
		
		return TRUE;
	}
}